﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using LostHobbits.Input;

namespace LostHobbits.Scene.Characters.PC
{
    public class Fosco : ICharacter
    {

        private string alias = "Gimli2";
        private Vector2 position;
        public Vector2 Position
        {
            get { return position; }
            set { position = value; }
        }

        public void Act(Microsoft.Xna.Framework.GameTime gameTime)
        {
            input.ReadInput();
            CommandType cmd = input.LastCommand;
            if (cmd == CommandType.Left)
                position.X += 1f;
        }        

        public void BuildRenderAssembly(List<Render.RenderManager.RendationInfo> toRender, Vector2 parentPos)
        {
            Render.RenderManager.RendationInfo tmp = new Render.RenderManager.RendationInfo();
            tmp.alias = alias;
            tmp.location = Position + parentPos;
            tmp.rotation = 0f;
            tmp.tint = Color.White;
            toRender.Add(tmp);
        }

        public void Load(Sound.ISoundService sound)
        {

        }

        public void Update(GameTime gameTime, Sound.ISoundService sound, IInputService input)
        {
            
        }
    }
}
